package com.zn.mapper;

import com.zn.entity.OptionTradingContract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OptionTradingContractMapper {
    int insertSelective(OptionTradingContract record);
    OptionTradingContract selectByGoodsIdAndMonth(@Param("tradingGoodsId") String tradingGoodsId, @Param("contractMonthName") String contractMonthName);
    int setIsTradingDisabled();
    int updateByPrimaryKeySelective(OptionTradingContract record);
    OptionTradingContract selectLastByGoodsId(@Param("tradingGoodsId") String tradingGoodsId);

    //获取交易时间的合约日期
    List<OptionTradingContract> selectIsTrading();
}